/*
 * jxSwing Project (2014)
 * 
 * by Denilson Edinaldo Pinto
 * 
 * LGPL
 * Copyright (C) 2014
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.jxSwing.border;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;

/**
 * @author Denilson Edinaldo Pinto
 * @porject jxSwing
 * @package org.jxSwing.border
 * @date 21/01/2014 - 21:42:59
 */
public class BevelBorderFactory {
	
	/**
	 * @param type
	 * @param highlight
	 * @param shadow
	 * @return BevelBorder
	 */
	private static BevelBorder createBorder(final int type, final Color highlight, final Color shadow) {
	
		return (BevelBorder)BorderFactory.createBevelBorder(type, highlight, shadow);
	}
	
	/**
	 * @param type
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	private static BevelBorder createBorder(final int type, final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return (BevelBorder)BorderFactory.createBevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
	
	/**
	 * @param type
	 * @param highlight
	 * @param shadow
	 * @return BevelBorder
	 */
	private static BevelBorder createSoftBorder(final int type, final Color highlight, final Color shadow) {
	
		return (BevelBorder)BorderFactory.createSoftBevelBorder(type, highlight, shadow);
	}
	
	/**
	 * @param type
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	private static BevelBorder createSoftBorder(final int type, final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return (BevelBorder)BorderFactory.createSoftBevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredBorder() {
	
		return (BevelBorder)BorderFactory.createLoweredBevelBorder();
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredBorder(final Color highlight, final Color shadow) {
	
		return createBorder(BevelBorder.LOWERED, highlight, shadow);
	}
	
	/**
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredBorder(final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return createBorder(BevelBorder.LOWERED, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredSoftBorder() {
	
		return (BevelBorder)BorderFactory.createLoweredSoftBevelBorder();
	}
	
	/**
	 * @param highlight
	 * @param shadow
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredSoftBorder(final Color highlight, final Color shadow) {
	
		return createSoftBorder(BevelBorder.LOWERED, highlight, shadow);
	}
	
	/**
	 * @param type
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	public static BevelBorder createLoweredSoftBorder(final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return createSoftBorder(BevelBorder.LOWERED, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedBorder() {
	
		return (BevelBorder)BorderFactory.createRaisedBevelBorder();
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedBorder(final Color highlight, final Color shadow) {
	
		return createBorder(BevelBorder.RAISED, highlight, shadow);
	}
	
	/**
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedBorder(final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return createBorder(BevelBorder.RAISED, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
	
	/**
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedSoftBorder() {
	
		return (BevelBorder)BorderFactory.createRaisedSoftBevelBorder();
	}
	
	/**
	 * @param highlight
	 * @param shadow
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedSoftBorder(final Color highlight, final Color shadow) {
	
		return createSoftBorder(BevelBorder.RAISED, highlight, shadow);
	}
	
	/**
	 * @param highlightOuter
	 * @param highlightInner
	 * @param shadowOuter
	 * @param shadowInner
	 * @return BevelBorder
	 */
	public static BevelBorder createRaisedSoftBorder(final Color highlightOuter, final Color highlightInner, final Color shadowOuter, final Color shadowInner) {
	
		return createSoftBorder(BevelBorder.RAISED, highlightOuter, highlightInner, shadowOuter, shadowInner);
	}
}
